{extend name="layout/base" /}
{block name="main"}
<div class="news">
    <div class="container">
        <div class="index-title txt-c">
            <em>查看留言</em>

        </div>
        <div class="news-list c">
            <ul>

                <div class="content-form">
                    <table width="1120" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#67B41A"
                           class="newsline">
                        {foreach $contactList as $index => $contact}
                        <tr>
                            <td width="11" rowspan="3" valign="top" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;
                                {$index + 1}
                            </td>
                            <td width="85" rowspan="3" align="center" valign="middle" bgcolor="#FFFFFF">
                                <img width='70' height='70' src=__STATIC__/{$contact.photo_no}.gif border=0>
                            </td>
                            <td height="20" colspan="2" align="left" valign="middle" bgcolor="#FFFFFF">&nbsp; &nbsp;
                                留言于:{$contact.create_time} &nbsp;
                            </td>
                            <td width="10" rowspan="3" valign="top" bgcolor="#FFFFFF" style="width: 10px">
                                <!--DWLayoutEmptyCell-->&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td width="491" height="78" align="left" valign="top" bgcolor="#FFFFFF">&nbsp;{$contact.content}</td>
                            <td width="573" align="left" valign="top" bgcolor="#FFFFFF"><p>回复：</p>
                                <p>{$contact.reply}</p></td>
                        </tr>
                        <tr>
                            <td colspan="2" align="left" valign="middle" bgcolor="#FFFFFF" style="height: 25px">&nbsp;
                                &nbsp;账号：{:session('user.username')} &nbsp; &nbsp;姓名：{$contact.name}&nbsp;&nbsp;
                            </td>
                        </tr>
                        {/foreach}
                    </table>

                    <div class="fy"><a href="/contact/list?page=1">首页</a> <a
                            href="/contact/list?page={$page-1}">前一页</a> <a
                            href="/contact/list?page={$page+1}">后一页</a> <a
                            href="/contact/list?page={$totalPage}">末页</a>
                        当前第{$page}页,共{$totalPage}页 以上数据共
                        {$total}条,
                    </div>
                </div>

            </ul>
        </div>

    </div>
</div>
{/block}
